<template>
  <div class="siteWrapper">
    <el-button @click="dialogVisible = true">新增</el-button>
    <div>
      <el-table :data="tableData" style="width: 100%" empty-text="暂无数据">
        <el-table-column prop="date" label="类型" width="180">
        </el-table-column>
        <el-table-column prop="name" label="主题" width="180">
        </el-table-column>
        <el-table-column prop="address" label="发布日期"> </el-table-column>
        <el-table-column prop="address" label="编辑人"> </el-table-column>
        <el-table-column prop="address" label="状态"> </el-table-column>
      </el-table>
    </div>
    <el-dialog title="提示" v-model="dialogVisible" width="30%">
      <div>
        <el-form :model="form" label-width="80px">
          <el-row gutter="20">
            <el-col :span="12">
              <el-form-item label="类型">
                <el-input v-model="form.name"></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="编辑人">
                <el-input v-model="form.name"></el-input>
              </el-form-item>
            </el-col>
          </el-row>
          <el-form-item label="标签">
            <el-input></el-input>
          </el-form-item>
          <el-form-item label="内容">
            <el-input></el-input>
          </el-form-item>
        </el-form>
      </div>
      <template #footer>
        <span class="dialog-footer ta-center" style="display: block">
          <el-button type="primary" @click="dialogVisible = false"
            >发送</el-button
          >
          <el-button @click="dialogVisible = false" size="small"
            >定时发送</el-button
          >
          <el-button @click="dialogVisible = false" size="small"
            >存草稿</el-button
          >
          <el-button @click="dialogVisible = false" size="small"
            >关闭</el-button
          >
        </span>
      </template>
    </el-dialog>
  </div>
</template>
<script lang="ts">
import { defineComponent, reactive, ref } from "vue";
export default defineComponent({
  setup() {
    let tableData = ref();
    let dialogVisible = ref(false);
    let form = reactive({
      name: "",
    });
    return {
      tableData,
      dialogVisible,
      form,
    };
  },
});
</script>
<style lang="scss" scoped>
.siteWrapper {
  background: #fff;
  height: 100%;
  padding: 20px;
}
</style>
